﻿// =================================================================== 
// 项目说明
//====================================================================
// lsc @Copy Right 2019
// 文件： TodoEntity.cs
// 项目名称：斑马车务
// 创建时间：2019-12-11
// 负责人：lsc
// ===================================================================

using System;
using Dapper.Extensions;

namespace CRM.Infrastructure.Entity
{
	/// <summary>
	///数据实体  
	/// </summary>
    [PrimaryKey("TodoID")]
	public class Todo
	{
		///<summary>
		///
		///</summary>
		public Todo()
		{
		}

        [Column("PreTodoID", "")]
        public long PreTodoID { set; get; }

		///<summary>
		///
		///</summary>
        [Column("TodoID","")]
        public long TodoID { get; set; }

		///<summary>
		///跟进状态0：待跟进1：跟进中 2：成交 3：战败
		///</summary>
        [Column("FlowStep","0：待跟进1：跟进中 2：成交 3：战败")]
        public int FlowStep { get; set; }

		///<summary>
		///购买意向 0:无 1：低 2：中 3：高
		///</summary>
        [Column("PurchaseStep","0:未知 1：低 2：中 3：高")]
        public int PurchaseStep { get; set; }

		///<summary>
		///下次代办时间
		///</summary>
        [Column("TodoDate","下次代办时间")]
        public DateTime TodoDate { get; set; }

		///<summary>
		///代办内容
		///</summary>
        [Column("Comment","代办内容")]
        public string Comment { get; set; }

		///<summary>
		///用户ID
		///</summary>
        [Column("UserID","用户ID")]
        public long UserID { get; set; }

		///<summary>
		///线索ID
		///</summary>
        [Column("ClueID","线索ID")]
        public long ClueID { get; set; }

		///<summary>
		///创建时间
		///</summary>
        [Column("CreateDate","创建时间")]
        public DateTime CreateDate { get; set; }

		///<summary>
		///逻辑标识(1有效0无效)
		///</summary>
        [Column("IsActive","逻辑标识(1有效0无效)")]
        public int IsActive { get; set; }

		///<summary>
		///0:未读 1：已读
		///</summary>
        [Column("IsRead","0:未读 1：已读")]
        public int IsRead { get; set; }

		///<summary>
		///代办时间格式化
		///</summary>
        [Column("TodoDateFrt","代办时间格式化")]
        public string TodoDateFrt { get; set; }

	}
}